package com.harbintransport.backend.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "dispatch_suggestion_data")
@IdClass(DispatchSuggestionId.class)
public class DispatchSuggestion implements Serializable {

    @Id
    @Column(name = "route_id")
    private String routeId;

    @Id
    @Column(name = "station_id")
    private String stationId;

    @Id
    @Column(name = "hour")
    private int hour;

    @Column(name = "onboard")
    private int onboard;

    @Column(name = "avg_crowd_level")
    private double avgCrowdLevel;

    // Getters and Setters
    public String getRouteId() {
        return routeId;
    }

    public void setRouteId(String routeId) {
        this.routeId = routeId;
    }

    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getOnboard() {
        return onboard;
    }

    public void setOnboard(int onboard) {
        this.onboard = onboard;
    }

    public double getAvgCrowdLevel() {
        return avgCrowdLevel;
    }

    public void setAvgCrowdLevel(double avgCrowdLevel) {
        this.avgCrowdLevel = avgCrowdLevel;
    }
}